<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>shark::MultiVariateNormalDistributionCholesky Class Reference</title>
<script type="text/javaScript" src="search/search.js"></script>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3.0.1/es5/tex-mml-chtml.js"></script>
<script src="../../mlstyle.js"></script>
<link href="../css/besser.css" rel="stylesheet" type="text/css"/>
</head>
<!-- pretty cool: each body gets an id tag which is the basename of the web page  -->
<!--              and allows for page-specific CSS. this is client-side scripted, -->
<!--              so the id will not yet show up in the served source code -->
<script type="text/javascript">
    jQuery(document).ready(function () {
        var url = jQuery(location).attr('href');
        var pname = url.substr(url.lastIndexOf("/")+1, url.lastIndexOf(".")-url.lastIndexOf("/")-1);
        jQuery('#this_url').html('<strong>' + pname + '</strong>');
        jQuery('body').attr('id', pname);
    });
</script>
<body>
    <div id="shark_old">
        <div id="wrap">
            <div id="header">
                <div id="site-name"><a href="../../sphinx_pages/build/html/index.html">Shark machine learning library</a></div>
                <ul id="nav">
                    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/installation.html">Installation</a>
                    </li>
		    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/tutorials/tutorials.html">Tutorials</a>
                    </li>
		    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/benchmark.html">Benchmarks</a>
                    </li>
                    <li class="active">
                        <a href="classes.html">Documentation</a>
                        <ul>
                            <li class="first"></li>
                            <li><a href="../../sphinx_pages/build/html/rest_sources/quickref/quickref.html">Quick references</a></li>
                            <li><a href="classes.html">Class list</a></li>
                            <li class="last"><a href="group__shark__globals.html">Global functions</a></li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
    </div>
<div id="doxywrapper">
<!--
    <div id="global_doxytitle">Doxygen<br>Documentation:</div>
-->
    <div id="navrow_wrapper">
<!-- Generated by Doxygen 1.9.8 -->
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespaceshark.html">shark</a></li><li class="navelem"><a class="el" href="classshark_1_1_multi_variate_normal_distribution_cholesky.html">MultiVariateNormalDistributionCholesky</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="classshark_1_1_multi_variate_normal_distribution_cholesky-members.html">List of all members</a> &#124;
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle"><div class="title">shark::MultiVariateNormalDistributionCholesky Class Reference</div></div>
</div><!--header-->
<div class="contents">

<p>Multivariate normal distribution with zero mean using a cholesky decomposition.  
 <a href="classshark_1_1_multi_variate_normal_distribution_cholesky.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_multi_variate_normal_distribution_8h_source.html">shark/Statistics/Distributions/MultiVariateNormalDistribution.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a7133de09b7605c17d9f0caa1dff6de58" id="r_a7133de09b7605c17d9f0caa1dff6de58"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_multi_variate_normal_distribution_cholesky.html#a7133de09b7605c17d9f0caa1dff6de58">MultiVariateNormalDistributionCholesky</a> (RealMatrix const &amp;<a class="el" href="namespaceshark.html#a0596df3c2544cbca51ec485254c27448">covariance</a>)</td></tr>
<tr class="memdesc:a7133de09b7605c17d9f0caa1dff6de58"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor.  <br /></td></tr>
<tr class="separator:a7133de09b7605c17d9f0caa1dff6de58"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7c07e530a9cf3007a0e56b49042484e1" id="r_a7c07e530a9cf3007a0e56b49042484e1"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_multi_variate_normal_distribution_cholesky.html#a7c07e530a9cf3007a0e56b49042484e1">MultiVariateNormalDistributionCholesky</a> ()</td></tr>
<tr class="separator:a7c07e530a9cf3007a0e56b49042484e1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac82104835bfa8ccecae3bfc313d5a863" id="r_ac82104835bfa8ccecae3bfc313d5a863"><td class="memTemplParams" colspan="2">template&lt;typename Archive &gt; </td></tr>
<tr class="memitem:ac82104835bfa8ccecae3bfc313d5a863"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classshark_1_1_multi_variate_normal_distribution_cholesky.html#ac82104835bfa8ccecae3bfc313d5a863">serialize</a> (Archive &amp;ar, const std::size_t version)</td></tr>
<tr class="memdesc:ac82104835bfa8ccecae3bfc313d5a863"><td class="mdescLeft">&#160;</td><td class="mdescRight">Stores/Restores the distribution from the supplied archive.  <br /></td></tr>
<tr class="separator:ac82104835bfa8ccecae3bfc313d5a863"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3282df396618643594c4e4e5ea932862" id="r_a3282df396618643594c4e4e5ea932862"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_multi_variate_normal_distribution_cholesky.html#a3282df396618643594c4e4e5ea932862">resize</a> (std::size_t <a class="el" href="classshark_1_1_multi_variate_normal_distribution_cholesky.html#a9fb3ed174bf3586b31d60b4113dde066">size</a>)</td></tr>
<tr class="memdesc:a3282df396618643594c4e4e5ea932862"><td class="mdescLeft">&#160;</td><td class="mdescRight">Resizes the distribution. Updates both eigenvectors and eigenvalues.  <br /></td></tr>
<tr class="separator:a3282df396618643594c4e4e5ea932862"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9fb3ed174bf3586b31d60b4113dde066" id="r_a9fb3ed174bf3586b31d60b4113dde066"><td class="memItemLeft" align="right" valign="top">std::size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_multi_variate_normal_distribution_cholesky.html#a9fb3ed174bf3586b31d60b4113dde066">size</a> () const</td></tr>
<tr class="memdesc:a9fb3ed174bf3586b31d60b4113dde066"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the size of the created vectors.  <br /></td></tr>
<tr class="separator:a9fb3ed174bf3586b31d60b4113dde066"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac47101432c4252ea0a86ae4e622cb69a" id="r_ac47101432c4252ea0a86ae4e622cb69a"><td class="memItemLeft" align="right" valign="top">blas::matrix&lt; double, blas::column_major &gt; const &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_multi_variate_normal_distribution_cholesky.html#ac47101432c4252ea0a86ae4e622cb69a">lowerCholeskyFactor</a> () const</td></tr>
<tr class="memdesc:ac47101432c4252ea0a86ae4e622cb69a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the matrix holding the lower cholesky factor A.  <br /></td></tr>
<tr class="separator:ac47101432c4252ea0a86ae4e622cb69a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7eea13a233895d60e0ab27837f5f2e7c" id="r_a7eea13a233895d60e0ab27837f5f2e7c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_multi_variate_normal_distribution_cholesky.html#a7eea13a233895d60e0ab27837f5f2e7c">setCovarianceMatrix</a> (RealMatrix const &amp;matrix)</td></tr>
<tr class="memdesc:a7eea13a233895d60e0ab27837f5f2e7c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the new covariance matrix by computing the new cholesky dcomposition.  <br /></td></tr>
<tr class="separator:a7eea13a233895d60e0ab27837f5f2e7c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab0afb717b2e773692a4b972c104708d1" id="r_ab0afb717b2e773692a4b972c104708d1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_multi_variate_normal_distribution_cholesky.html#ab0afb717b2e773692a4b972c104708d1">rankOneUpdate</a> (double alpha, double beta, RealVector const &amp;v)</td></tr>
<tr class="memdesc:ab0afb717b2e773692a4b972c104708d1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Updates the covariance matrix of the distribution to C&lt;- alpha*C+beta * vv^T.  <br /></td></tr>
<tr class="separator:ab0afb717b2e773692a4b972c104708d1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8653eefd19a56f858fd24c3d2b948284" id="r_a8653eefd19a56f858fd24c3d2b948284"><td class="memTemplParams" colspan="2">template&lt;class randomType , class Vector1 , class Vector2 &gt; </td></tr>
<tr class="memitem:a8653eefd19a56f858fd24c3d2b948284"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classshark_1_1_multi_variate_normal_distribution_cholesky.html#a8653eefd19a56f858fd24c3d2b948284">generate</a> (randomType &amp;rng, Vector1 &amp;y, Vector2 &amp;z) const</td></tr>
<tr class="separator:a8653eefd19a56f858fd24c3d2b948284"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1de3800a44132fead861550cfb36a038" id="r_a1de3800a44132fead861550cfb36a038"><td class="memTemplParams" colspan="2">template&lt;class randomType &gt; </td></tr>
<tr class="memitem:a1de3800a44132fead861550cfb36a038"><td class="memTemplItemLeft" align="right" valign="top">result_type&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classshark_1_1_multi_variate_normal_distribution_cholesky.html#a1de3800a44132fead861550cfb36a038">operator()</a> (randomType &amp;rng) const</td></tr>
<tr class="memdesc:a1de3800a44132fead861550cfb36a038"><td class="mdescLeft">&#160;</td><td class="mdescRight">Samples the distribution.  <br /></td></tr>
<tr class="separator:a1de3800a44132fead861550cfb36a038"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Multivariate normal distribution with zero mean using a cholesky decomposition. </p>

<p class="definition">Definition at line <a class="el" href="_multi_variate_normal_distribution_8h_source.html#l00129">129</a> of file <a class="el" href="_multi_variate_normal_distribution_8h_source.html">MultiVariateNormalDistribution.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a7133de09b7605c17d9f0caa1dff6de58" name="a7133de09b7605c17d9f0caa1dff6de58"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7133de09b7605c17d9f0caa1dff6de58">&#9670;&#160;</a></span>MultiVariateNormalDistributionCholesky() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">shark::MultiVariateNormalDistributionCholesky::MultiVariateNormalDistributionCholesky </td>
          <td>(</td>
          <td class="paramtype">RealMatrix const &amp;&#160;</td>
          <td class="paramname"><em>covariance</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Constructor. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">covariance</td><td>Covariance matrix. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_multi_variate_normal_distribution_8h_source.html#l00140">140</a> of file <a class="el" href="_multi_variate_normal_distribution_8h_source.html">MultiVariateNormalDistribution.h</a>.</p>

<p class="reference">References <a class="el" href="namespaceshark.html#a0596df3c2544cbca51ec485254c27448">shark::covariance()</a>, and <a class="el" href="classshark_1_1_multi_variate_normal_distribution_cholesky.html#a7eea13a233895d60e0ab27837f5f2e7c">setCovarianceMatrix()</a>.</p>

</div>
</div>
<a id="a7c07e530a9cf3007a0e56b49042484e1" name="a7c07e530a9cf3007a0e56b49042484e1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7c07e530a9cf3007a0e56b49042484e1">&#9670;&#160;</a></span>MultiVariateNormalDistributionCholesky() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">shark::MultiVariateNormalDistributionCholesky::MultiVariateNormalDistributionCholesky </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_multi_variate_normal_distribution_8h_source.html#l00144">144</a> of file <a class="el" href="_multi_variate_normal_distribution_8h_source.html">MultiVariateNormalDistribution.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a8653eefd19a56f858fd24c3d2b948284" name="a8653eefd19a56f858fd24c3d2b948284"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8653eefd19a56f858fd24c3d2b948284">&#9670;&#160;</a></span>generate()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class randomType , class Vector1 , class Vector2 &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void shark::MultiVariateNormalDistributionCholesky::generate </td>
          <td>(</td>
          <td class="paramtype">randomType &amp;&#160;</td>
          <td class="paramname"><em>rng</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Vector1 &amp;&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Vector2 &amp;&#160;</td>
          <td class="paramname"><em>z</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_multi_variate_normal_distribution_8h_source.html#l00182">182</a> of file <a class="el" href="_multi_variate_normal_distribution_8h_source.html">MultiVariateNormalDistribution.h</a>.</p>

<p class="reference">References <a class="el" href="namespaceshark_1_1random.html#a972c5f7f031612a130aa077fc9136a9f">shark::random::gauss()</a>, and <a class="el" href="classshark_1_1_multi_variate_normal_distribution_cholesky.html#a9fb3ed174bf3586b31d60b4113dde066">size()</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_c_m_a_individual.html#a7cb81d9d266d24f1bfc336da863084f9">shark::CMAIndividual&lt; FitnessType &gt;::mutate()</a>, and <a class="el" href="classshark_1_1_multi_variate_normal_distribution_cholesky.html#a1de3800a44132fead861550cfb36a038">operator()()</a>.</p>

</div>
</div>
<a id="ac47101432c4252ea0a86ae4e622cb69a" name="ac47101432c4252ea0a86ae4e622cb69a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac47101432c4252ea0a86ae4e622cb69a">&#9670;&#160;</a></span>lowerCholeskyFactor()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">blas::matrix&lt; double, blas::column_major &gt; const  &amp; shark::MultiVariateNormalDistributionCholesky::lowerCholeskyFactor </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns the matrix holding the lower cholesky factor A. </p>

<p class="definition">Definition at line <a class="el" href="_multi_variate_normal_distribution_8h_source.html#l00166">166</a> of file <a class="el" href="_multi_variate_normal_distribution_8h_source.html">MultiVariateNormalDistribution.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_c_m_s_a.html#a2639d04da06486ed64bd2d25f6314f50">shark::CMSA::eigenValues()</a>.</p>

</div>
</div>
<a id="a1de3800a44132fead861550cfb36a038" name="a1de3800a44132fead861550cfb36a038"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1de3800a44132fead861550cfb36a038">&#9670;&#160;</a></span>operator()()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class randomType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">result_type shark::MultiVariateNormalDistributionCholesky::operator() </td>
          <td>(</td>
          <td class="paramtype">randomType &amp;&#160;</td>
          <td class="paramname"><em>rng</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Samples the distribution. </p>
<p>Returns a vector pair (y,z) where y=Lz and, L is the lower cholesky factor and z is a vector of normally distributed numbers. Thus y is the real sampled point.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">rng</td><td>Random number generator. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_multi_variate_normal_distribution_8h_source.html#l00198">198</a> of file <a class="el" href="_multi_variate_normal_distribution_8h_source.html">MultiVariateNormalDistribution.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_multi_variate_normal_distribution_cholesky.html#a8653eefd19a56f858fd24c3d2b948284">generate()</a>.</p>

</div>
</div>
<a id="ab0afb717b2e773692a4b972c104708d1" name="ab0afb717b2e773692a4b972c104708d1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab0afb717b2e773692a4b972c104708d1">&#9670;&#160;</a></span>rankOneUpdate()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void shark::MultiVariateNormalDistributionCholesky::rankOneUpdate </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>alpha</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>beta</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">RealVector const &amp;&#160;</td>
          <td class="paramname"><em>v</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Updates the covariance matrix of the distribution to C&lt;- alpha*C+beta * vv^T. </p>

<p class="definition">Definition at line <a class="el" href="_multi_variate_normal_distribution_8h_source.html#l00177">177</a> of file <a class="el" href="_multi_variate_normal_distribution_8h_source.html">MultiVariateNormalDistribution.h</a>.</p>

</div>
</div>
<a id="a3282df396618643594c4e4e5ea932862" name="a3282df396618643594c4e4e5ea932862"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3282df396618643594c4e4e5ea932862">&#9670;&#160;</a></span>resize()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void shark::MultiVariateNormalDistributionCholesky::resize </td>
          <td>(</td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>size</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Resizes the distribution. Updates both eigenvectors and eigenvalues. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">size</td><td>The new size of the distribution </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_multi_variate_normal_distribution_8h_source.html#l00156">156</a> of file <a class="el" href="_multi_variate_normal_distribution_8h_source.html">MultiVariateNormalDistribution.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_multi_variate_normal_distribution_cholesky.html#a9fb3ed174bf3586b31d60b4113dde066">size()</a>.</p>

<p class="reference">Referenced by <a class="el" href="structshark_1_1_c_m_a_chromosome.html#aba46843f3412c36f04ec4c01fc8eabd8">shark::CMAChromosome::CMAChromosome()</a>.</p>

</div>
</div>
<a id="ac82104835bfa8ccecae3bfc313d5a863" name="ac82104835bfa8ccecae3bfc313d5a863"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac82104835bfa8ccecae3bfc313d5a863">&#9670;&#160;</a></span>serialize()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Archive &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void shark::MultiVariateNormalDistributionCholesky::serialize </td>
          <td>(</td>
          <td class="paramtype">Archive &amp;&#160;</td>
          <td class="paramname"><em>ar</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::size_t&#160;</td>
          <td class="paramname"><em>version</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Stores/Restores the distribution from the supplied archive. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in,out]</td><td class="paramname">ar</td><td>Archive to read from/write to. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">version</td><td>Currently unused. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_multi_variate_normal_distribution_8h_source.html#l00150">150</a> of file <a class="el" href="_multi_variate_normal_distribution_8h_source.html">MultiVariateNormalDistribution.h</a>.</p>

</div>
</div>
<a id="a7eea13a233895d60e0ab27837f5f2e7c" name="a7eea13a233895d60e0ab27837f5f2e7c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7eea13a233895d60e0ab27837f5f2e7c">&#9670;&#160;</a></span>setCovarianceMatrix()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void shark::MultiVariateNormalDistributionCholesky::setCovarianceMatrix </td>
          <td>(</td>
          <td class="paramtype">RealMatrix const &amp;&#160;</td>
          <td class="paramname"><em>matrix</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Sets the new covariance matrix by computing the new cholesky dcomposition. </p>

<p class="definition">Definition at line <a class="el" href="_multi_variate_normal_distribution_8h_source.html#l00172">172</a> of file <a class="el" href="_multi_variate_normal_distribution_8h_source.html">MultiVariateNormalDistribution.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_multi_variate_normal_distribution_cholesky.html#a7133de09b7605c17d9f0caa1dff6de58">MultiVariateNormalDistributionCholesky()</a>, and <a class="el" href="classshark_1_1_normal_distributed_points.html#a2a807f0aa71ef029adbb4b453bdadc8a">shark::NormalDistributedPoints::NormalDistributedPoints()</a>.</p>

</div>
</div>
<a id="a9fb3ed174bf3586b31d60b4113dde066" name="a9fb3ed174bf3586b31d60b4113dde066"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9fb3ed174bf3586b31d60b4113dde066">&#9670;&#160;</a></span>size()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::size_t shark::MultiVariateNormalDistributionCholesky::size </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns the size of the created vectors. </p>

<p class="definition">Definition at line <a class="el" href="_multi_variate_normal_distribution_8h_source.html#l00161">161</a> of file <a class="el" href="_multi_variate_normal_distribution_8h_source.html">MultiVariateNormalDistribution.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_multi_variate_normal_distribution_cholesky.html#a8653eefd19a56f858fd24c3d2b948284">generate()</a>, and <a class="el" href="classshark_1_1_multi_variate_normal_distribution_cholesky.html#a3282df396618643594c4e4e5ea932862">resize()</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>include/shark/Statistics/Distributions/<a class="el" href="_multi_variate_normal_distribution_8h_source.html">MultiVariateNormalDistribution.h</a></li>
</ul>
</div><!-- contents -->
</div>
</body>
</html>
